package cate.game.event.hero;

import cate.game.event.GameEventListener;

public class HeroLevelChangeListener implements GameEventListener<HeroLevelChangeEvent> {
    @Override
    public void onEvent(HeroLevelChangeEvent gameEvent) {
        if(gameEvent.role.getRes().worldTree.isOpen()){
            gameEvent.role.getRes().worldTree.heroShare.onHeroLvlChange(true);
        }
    }

    @Override
    public boolean isFailOnException() {
        return false;
    }
}
